<?php
/**
 * 编辑.
 * User: madong
 * Date: 2018/10/19
 * Time: 9:46 AM
 */

namespace app\api\controller\jiaoyi;


use think\Controller;
use think\Db;
use think\Request;

class Bianji extends Controller
{
    //场外订单编辑
    public function Order_edit(){

        $res = Request::instance();

      

        if (Db::name('jiaoyi')->where('ordernumber',$res->param('ordernumber'))->update([

            'xiao' => $res->param('xiao'),

            'da' => $res->param('da'),

            'jiage' => $res->param('jiage')

        ])){

            echo json_encode(['zt'=>1,'msg'=>'广告修改成功']);

        }else{

            echo json_encode(['zt'=>1,'msg'=>'广告修改失败']);

        }


    }
}